package com.zxd.threads.thread_lock.optimistic_lock;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * ClassName:Movie
 * Package:com.zxd.threads.thread_optimistic_lock
 *
 * @Date:2023/9/28 14:23
 * @Author:zxde
 */
public class Movie {

    private AtomicInteger count = new AtomicInteger(0);


    public void setCount(){
            System.out.println(count.addAndGet(1));
    }

}
